
/**
 * 
 * An inventory item for sale and how much it costs in commodities.
 *
 */
public class MarketItem extends BaphiListItem {

	private int itemIdx;
	private CargoList cargoList;
	
	/**
	 * An inventory item for sale and how much it costs in commodities.
	 * @param itemIdx - Index into inventory list
	 * @param cargoList - commodities needed to purchase inventory item
	 */
	public MarketItem(int itemIdx, CargoList cargoList)
	{
		this.itemIdx = itemIdx;
		this.cargoList = cargoList;
	}
	
	/**
	 * 
	 * @return index into inventory list
	 */
	public int getItemIdx()
	{
		return itemIdx;
	}
	
	/**
	 * 
	 * @return list of commodities needed to buy item
	 */
	public CargoList getCargoList()
	{
		return cargoList;
	}
}
